<template>
  <template>
    <div class="common-layout">
      <el-container>
        <el-header class="header">
          <header-front></header-front>
        </el-header>
        <el-main class="main">
          <router-view/>
        </el-main>
      </el-container>
    </div>
  </template>

</template>

<script setup lang="ts">
import HeaderFront from "../../layout/header/HeaderFront.vue";
import {onMounted} from "vue";
onMounted(() => {
  window.onbeforeunload = function (e) {
    let storage = window.localStorage;
    storage.clear();
  };
})
</script>

<style scoped lang="scss">
.header{
  width: 100%;
  height: 300px;
}
.main{
  background-color: #8c939d;
}
</style>